package com.lxy.cxcyxmmsbackend.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘新颖
 * @since 2024-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "QxglCd对象", description = "菜单")
public class QxglCd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单编号 M-")
    @TableId(value = "CD_BH", type = IdType.ID_WORKER)
    private String cdBh;

    @ApiModelProperty(value = "菜单名称")
    @TableField("CD_MC")
    private String cdMc;

    @ApiModelProperty(value = "菜单等级")
    @TableField("CD_DJ")
    private String cdDj;

    @ApiModelProperty(value = "父菜单编号")
    @TableField("CD_FCDBH")
    private String cdFcdbh;

    @ApiModelProperty(value = "菜单创建时间")
    @TableField("CD_CJSJ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cdCjsj;

    @ApiModelProperty(value = "菜单更新时间")
    @TableField("CD_GXSJ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cdGxsj;

    @ApiModelProperty(value = "路由名称")
    @TableField("CD_LYMC")
    private String cdLymc;

    @ApiModelProperty(value = "路由路径")
    @TableField("CD_LYLJ")
    private String cdLylj;

    @ApiModelProperty(value = "图标")
    @TableField("CD_TB")
    private String cdTb;

    @ApiModelProperty(value = "子菜单")
    private List<QxglCd> children;


}
